package com.smart.manage.mapper;

import java.util.List;
import com.smart.manage.domain.DrugMovements;

/**
 * 药品变动明细Mapper接口
 * 
 * @author lingyao
 * @date 2025-03-07
 */
public interface DrugMovementsMapper 
{
    /**
     * 查询药品变动明细
     * 
     * @param movementId 药品变动明细主键
     * @return 药品变动明细
     */
    public DrugMovements selectDrugMovementsByMovementId(Long movementId);

    /**
     * 查询药品变动明细列表
     * 
     * @param drugMovements 药品变动明细
     * @return 药品变动明细集合
     */
    public List<DrugMovements> selectDrugMovementsList(DrugMovements drugMovements);

    /**
     * 新增药品变动明细
     * 
     * @param drugMovements 药品变动明细
     * @return 结果
     */
    public int insertDrugMovements(DrugMovements drugMovements);

    /**
     * 修改药品变动明细
     * 
     * @param drugMovements 药品变动明细
     * @return 结果
     */
    public int updateDrugMovements(DrugMovements drugMovements);

    /**
     * 删除药品变动明细
     * 
     * @param movementId 药品变动明细主键
     * @return 结果
     */
    public int deleteDrugMovementsByMovementId(Long movementId);

    /**
     * 批量删除药品变动明细
     * 
     * @param movementIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDrugMovementsByMovementIds(Long[] movementIds);
}
